I was able to fix it by separating the xcframework to its own Swift Package
let package = Package(
name: "TheLibrary",
products: [
.library(name: "TheLibrary", targets: ["TheLibrary"]),
],
dependencies: [],
targets: [
.binaryTarget(name: "TheLibrary", path: "Sources/TheLibrary.xcframework")
]
)
and then including as a dependency in main project.
let package = Package(
name: "MainProject",
platforms: [.iOS(.v11), .macOS(.v10_15)],
products: [
.library(name: "MainProject", targets: ["MainProject"])
],
dependencies: [
.package(url: "../TheLibrary", from: "1.0.0")
],
targets: [
.target(
name: "MainProject",
dependencies: [
"TheLibrary"
]
)
]
)
I hope it helps!
Post
Replies
Boosts
Views
Activity
Any ideas? I have the same problem.
I am facing the same problem. Any news? Solutions? Workarounds?